<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字体</title>
    <style>
        /* font-face 可以将服务器中的字体直接提供给用户去使用*/
        @font-face {
            font-family: "myfont";
            /* 服务器中的字体路径 */
            src: url("./font/ZCOOLKuaiLe-Regular.ttf") format("truetype");
        }
        p{
            color:green;
            font-size: 30px;
            font-family:myfont,'Courier New', Courier,monospace; 
             }
    </style>
</head>
<body>
    <p>今天天气真不错,hello hello how are you !</p>
</body>
</html>